package com.vpen.account.demo.model.req;

import com.vpen.clib.validation.group.Insert;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * 描述: 创建用户请求体
 *
 * @author 韦鹏
 * @date 2022/8/15 16:25
 */
@Data
@Accessors(chain = true)
public class ReqAccountUser {

    @NotBlank(groups = {Insert.class}, message = "用户名不能为空")
    private String username;

    @NotBlank(groups = {Insert.class}, message = "昵称不能为空")
    private String nickname;

    @NotBlank(groups = {Insert.class}, message = "手机号不能为空")
    private String phone;

    @NotBlank(groups = {Insert.class}, message = "短信验证码不能为空")
    private String code;

}
